<?php
  require_once('inc_admin.php');
  connect();
  $id = $_POST['id'];
  $data = array(
		'typename' => trim($_POST['typename']),  
  	);
  $result = update('videotype',$data,'tid='.$id);
  if(!result){
		echo "更新失败！<br/>";
		echo "<a href='vtEditForm.php'>返回</a>";	  
  }else{		
		redirect('vtList.php', '更新成功！');
  }	   
 ?>
